import requests

url = 'https://fanyi.baidu.com/sug'

data = {
    'kw': 'abandon'
}

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36'
}

response = requests.post(url=url, data=data, headers=headers)

content = response.text

import json

obj = json.loads(content)

s = json.dumps(obj, ensure_ascii=False)

print(s)
